﻿GO

/****** Object:  Table [dbo].[Dict]    Script Date: 2020/12/7 9:37:23 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[Dict](
	[DictId] [int] IDENTITY(1,1) NOT NULL,
	[DictValue] [varchar](100) NOT NULL,
	[GroupName] [varchar](100) NOT NULL,
	[DictType] [varchar](100) NOT NULL,
	[OrderBy] [smallint] NOT NULL,
	[DictKey] [varchar](100) NOT NULL,
	[EnDescription] [varchar](500) NOT NULL,
	[CnDescription] [varchar](500) NOT NULL,
 CONSTRAINT [PK_Dict_DictId] PRIMARY KEY CLUSTERED 
(
	[DictId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dict', @level2type=N'COLUMN',@level2name=N'DictId'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'字典值' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dict', @level2type=N'COLUMN',@level2name=N'DictValue'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'分组' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dict', @level2type=N'COLUMN',@level2name=N'GroupName'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'数据类型' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dict', @level2type=N'COLUMN',@level2name=N'DictType'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'排序' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dict', @level2type=N'COLUMN',@level2name=N'OrderBy'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'字典key' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dict', @level2type=N'COLUMN',@level2name=N'DictKey'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'描述' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dict', @level2type=N'COLUMN',@level2name=N'EnDescription'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'描述' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dict', @level2type=N'COLUMN',@level2name=N'CnDescription'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'字典' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Dict'
GO


GO

INSERT INTO [dbo].[Dict]
           ([DictValue]
           ,[GroupName]
           ,[DictType]
           ,[OrderBy]
           ,[DictKey]
           ,[EnDescription]
           ,[CnDescription])
     VALUES
           ('1'
           ,'sex'
           ,'enum'
           ,0
           ,'man'
           ,'man'
           ,'男人')



		   INSERT INTO [dbo].[Dict]
           ([DictValue]
           ,[GroupName]
           ,[DictType]
           ,[OrderBy]
           ,[DictKey]
           ,[EnDescription]
           ,[CnDescription])
     VALUES
           ('2'
           ,'sex'
           ,'enum'
           ,1
           ,'woman'
           ,'woman'
           ,'女人')
GO
